<% content_for :page_title, @post.title %>

<section class="section">
	<div class="container">
		<nav class="level">
			<div class="content">
				<%= @post.content %>
			</div>
		  <div class="level-right">
		  	<p class="level-item">
		    	<%= link_to "Edit", edit_post_path(@post), class:"button" %>
		  	</p>
		  </div>
		</nav>
		<hr/>
	</div>
</section>

<section class="section comments">
	<div class="container">
		<h2 class="subtitle is-5"><strong><%= @post.comments.count %></strong> Comments</h2>
		<%= render @post.comments %>
		<div class="comment-form">
			<hr/>
			<h3 class="subtitle is-3">Leave a reply</h3>
	 		<%= render 'comments/from' %>
		</div>
	</div>
</section>
